package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbCommodity;
import com.gtw.modules.entity.TbShoppingCart;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 购物车
 *
 * @author wuye
 */
@Mapper
@Repository
public interface TbShoppingCartDao {

    int deleteByPrimaryKey(Integer id);

    int insert(TbShoppingCart record);

    int insertSelective(TbShoppingCart record);

    TbShoppingCart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbShoppingCart record);

    int updateByPrimaryKey(TbShoppingCart record);

    TbShoppingCart findByCommodity(Integer commodityId, String uid,String selected);

    List<TbShoppingCart> queryPageList(Page<TbShoppingCart> page, Map<String, Object> map);
}